<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Logagent: src/logagent-element.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Logagent
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">logagent-element.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="logagent-element_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structelement__t.html">element_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aae274f41092a97b769cece1f3b400e0c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-element_8h.html#aae274f41092a97b769cece1f3b400e0c">ELEMENT_JSON_SIZE</a>&#160;&#160;&#160;1024</td></tr>
<tr class="separator:aae274f41092a97b769cece1f3b400e0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a66f5d60bb926223dfb2a7ff21781c5a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-element_8h.html#a66f5d60bb926223dfb2a7ff21781c5a2">logagent_element_work_all</a> (struct <a class="el" href="structlist__head.html">list_head</a> *element_list)</td></tr>
<tr class="separator:a66f5d60bb926223dfb2a7ff21781c5a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70d2b8df52f50ba62b754d924c388339"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-element_8h.html#a70d2b8df52f50ba62b754d924c388339">logagent_element_init_all</a> (struct <a class="el" href="structlist__head.html">list_head</a> *element_list)</td></tr>
<tr class="separator:a70d2b8df52f50ba62b754d924c388339"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a6c8fab3913b8b515572b891c131cc3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-element_8h.html#a0a6c8fab3913b8b515572b891c131cc3">logagent_element_exit_all</a> (struct <a class="el" href="structlist__head.html">list_head</a> *element_list)</td></tr>
<tr class="separator:a0a6c8fab3913b8b515572b891c131cc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a696fd0b76fe69520da20264cb65f2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-element_8h.html#a3a696fd0b76fe69520da20264cb65f2a">logagent_element_config_load</a> (struct <a class="el" href="structlist__head.html">list_head</a> *plugin_list, struct <a class="el" href="structlist__head.html">list_head</a> *element_list, const char *json)</td></tr>
<tr class="separator:a3a696fd0b76fe69520da20264cb65f2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2546317835801dc86064db00a160e342"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-element_8h.html#a2546317835801dc86064db00a160e342">logagent_element_config_unload</a> (struct <a class="el" href="structlist__head.html">list_head</a> *element_list)</td></tr>
<tr class="separator:a2546317835801dc86064db00a160e342"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="aae274f41092a97b769cece1f3b400e0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae274f41092a97b769cece1f3b400e0c">&#9670;&nbsp;</a></span>ELEMENT_JSON_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ELEMENT_JSON_SIZE&#160;&#160;&#160;1024</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a3a696fd0b76fe69520da20264cb65f2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a696fd0b76fe69520da20264cb65f2a">&#9670;&nbsp;</a></span>logagent_element_config_load()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_element_config_load </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>plugin_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>element_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>json</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>load elements config from json string </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">plugin_list</td><td>logagent's plugin store </td></tr>
    <tr><td class="paramname">element_list</td><td>a element list of pipeline </td></tr>
    <tr><td class="paramname">json</td><td>the pipeline's config json string </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2546317835801dc86064db00a160e342"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2546317835801dc86064db00a160e342">&#9670;&nbsp;</a></span>logagent_element_config_unload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_element_config_unload </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>element_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>unload elements config of a pipeline </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_list</td><td>a element list of pipeline </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0a6c8fab3913b8b515572b891c131cc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a6c8fab3913b8b515572b891c131cc3">&#9670;&nbsp;</a></span>logagent_element_exit_all()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_element_exit_all </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>element_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>call exit functions for all elements </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_list</td><td>a element list of pipeline </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a70d2b8df52f50ba62b754d924c388339"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70d2b8df52f50ba62b754d924c388339">&#9670;&nbsp;</a></span>logagent_element_init_all()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_element_init_all </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>element_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>call init functions for all elements </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_list</td><td>a element list of pipeline </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a66f5d60bb926223dfb2a7ff21781c5a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66f5d60bb926223dfb2a7ff21781c5a2">&#9670;&nbsp;</a></span>logagent_element_work_all()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_element_work_all </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structlist__head.html">list_head</a> *&#160;</td>
          <td class="paramname"><em>element_list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>call work functions for all elements </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_list</td><td>a element list of pipeline </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
